<template>
  <el-container direction="vertical">
    <mainContainerMenu :isTab="!!isTabMap[$route.name]" :isShowIframeHeader="false" :navList.sync="navList"></mainContainerMenu>
  </el-container>
</template>

<script>
  import mainContainerMenu from '@/common/components/mainContainerMenu';

  export default {
    name: 'home',
    data() {
      return {
        isTabMap: {
          flowManage: true,
          flowProcessForm: true,
          flowPersonStructure: true,
        },
        navList: [
        
        ],
      };
    },

    mounted(){
      console.log(this.$route)
      this.initTab()
    },

    methods: {
      initTab(){
        const route = this.$route
        if (route.meta.independentTab) {
          this.navList.push({
            name:route.meta.title,
            menuUrl: "/limit" + route.path
          })
        }
      }
    },

    components: {
      mainContainerMenu,
    },
  };
</script>

<style lang="scss" scoped></style>
